﻿using System;
using System.Collections.Generic;
using System.Configuration;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace OpenApi.Configuration
{
	/// <summary>
	/// service配置元素。
	/// </summary>
	public class OpenApiServiceElement : ConfigurationElement
	{

		/// <summary>
		/// 服务名称，name属性。
		/// </summary>
		[ConfigurationProperty("name")]
		public string Name
		{
			get
			{
				return (string)this["name"];
			}
			set
			{
				this["name"] = value;
			}
		}

		/// <summary>
		/// 服务协定，contract属性。
		/// </summary>
		[ConfigurationProperty("contract")]
		public string Contract
		{
			get
			{
				return (string)this["contract"];
			}
			set
			{
				this["contract"] = value;
			}
		}

		/// <summary>
		/// 服务实现，contractImpl属性。
		/// </summary>
		[ConfigurationProperty("contractImpl")]
		public string ContractImpl
		{
			get
			{
				return (string)this["contractImpl"];
			}
			set
			{
				this["contractImpl"] = value;
			}
		}
	}
}
